import 'package:amway_superapp_creator_plugin/api.dart';
import 'package:amway_superapp_creator_plugin/viewmodels/base_model.dart';
import 'package:flutter/cupertino.dart';

class CameraModelVM extends BaseModel{

  CaptureState _captureState=CaptureState.PHOTO;

  CaptureState get captureState => _captureState;

  set captureState(CaptureState value) {
    _captureState = value;
  }

  CameraModelVM({@required Api api}) {
    this.api = api;
  }

  void setCaptureState(CaptureState state){
    _captureState=state;
    notifyListeners();
  }

}
enum CaptureState{
  NONE,
  PHOTO,
  VIDEO_NOT_STARTED,
  VIDEO_STARTED
}